var webpack = require("webpack");
module.exports = {
    entry: {
        index: './src/main.js'
    },
    output: {
        path: __dirname,
        filename: './public/js/[name].bundle.js'
    },
    module: {
        loaders: [{
            test: /\.css$/,
            loader: "style-loader!css-loader"
        },
        {
           test: /\.js$/,
                loader: 'babel-loader',
                exclude: /node_modules/,
                query: {
                    presets: ['es2015', 'react']
                }
        }]
    },
    devServer: {
        hot: true,
        inline: true
    },
    plugins: [new webpack.HotModuleReplacementPlugin()]
}